home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / os2 / inadv095.zip / parseurl.cmd < prev    next >
OS/2 REXX Batch file  |  1996-07-23  |  457b  |  15 lines

  1. /*
  2. **
  3. ** PARSEURL.CMD - Sample REXX script which is executed whenever an URL needs
  4. **                to be processed. The script must return "" if the URL should
  5. **                not be processed by inetadv, or return the URL to be processed.
  6. */
  7. Parse Arg url
  8.  
  9. if (substr(url, 1, 6) = "ftp://" & right(url, 1) <> "/" & right(url,3) <> "txt") then do
  10.    'start /F /N "FTP Client" f:\download\ncftp\ncftp.exe' url
  11.    return ""
  12. end
  13.  
  14. return url
  15.